package com.yxw.live_vod_facade.dto;




import io.swagger.annotations.ApiModel;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.objects.annotations.Getter;
import lombok.Data;


/*** 
*@author Jiaxu.Huang
*@date 2023/12/12 15:52:17
*@update 2023/12/12 15:52:17
**/
@Data
@ApiModel(value="YxLiveActivityProductsQueryDTO", description="直播产品查询DTO")
public class YxLiveActivityProductsQueryDTO   implements Serializable
{
    private static final long serialVersionUID = 11702367537877L;

    /**
    *渠道Code
    */
    @ApiModelProperty(value = "渠道Code")
    private String channelCode;
    /**
    *店铺内部Id
    */
    //@NotNull(message = "店铺内部Id不可为空")
    @ApiModelProperty(value = "店铺内部Id")
    private Long liveShopId;
    /**
    *店铺外部Id
    */
    @ApiModelProperty(value = "店铺外部Id")
    private String shopId;
    /**
    *直播申请Id
    */
    //@NotBlank(message = "直播申请Id不可为空")
    @ApiModelProperty(value = "直播申请Id")
    private String liveApplyId;
    /**
    *直播Id
    */
    @NotBlank(message = "直播Id不可为空")
    @ApiModelProperty(value = "直播Id")
    private String liveId;
    /**
    *产品名称
    */
    @ApiModelProperty(value = "产品名称")
    private String productName;
    /**
    *创建时间
    */
    @ApiModelProperty(value = "查询创建时间开始")
    private java.util.Date createTimeStart;
    @ApiModelProperty(value = "查询创建时间结束")
    private java.util.Date createTimeEnd;
    /**
    *分页大小
    */
    //@NotNull(message = "受分页大小不能为空") 
    @ApiModelProperty(value = "分页大小")    
    private Integer pageSize; 
    /**
    *当前页码
    */
    //@NotNull(message = "当前页码不能为空") 
    @ApiModelProperty(value = "当前页码")   
    private Integer currentPage;
    
    @Getter
    public Integer getCurrentPage() {
        return null == currentPage ? 1 : currentPage;
    }

    @Getter
    public Integer getPageSize() {
        return null == pageSize ? 10 : pageSize;
    }    
    /**
    *将DTO转换为ENTITY
    
    public YxLiveActivityProductsEntity ConverToEntity()
    {
        YxLiveActivityProductsEntity oYxLiveActivityProductsEntity = new YxLiveActivityProductsEntity ();
        oYxLiveActivityProductsEntity.setChannelCode(channelCode);
        oYxLiveActivityProductsEntity.setLiveShopId(liveShopId);
        oYxLiveActivityProductsEntity.setShopId(shopId);
        oYxLiveActivityProductsEntity.setLiveApplyId(liveApplyId);
        oYxLiveActivityProductsEntity.setLiveId(liveId) ;
        oYxLiveActivityProductsEntity.setProductName(productName);
        return oYxLiveActivityProductsEntity;
    }*/
}

